using System.Runtime.Serialization;
using RentalOfCars.Domain.Entities;
using System.Collections.Generic;

namespace RentalOfCars.Infrastructure.Entities
{
    [DataContract]
    public class Car : ICar
    {
        public Car(int id, string name, string brand, int cost, int price, IDictionary<string, string> features)
        {
            ID = id;
            Name = name;
            Brand = brand;
            Cost = cost;
            Price = price;
            Features = features;
        }

        #region IClient Members

        [DataMember]
        public int ID { get; private set; }

        [DataMember]
        public string Name { get; private set; }

        [DataMember]
        public string Brand { get; private set; }

        [DataMember]
        public int Cost { get; private set; }

        [DataMember]
        public int Price { get; private set; }

        [DataMember]
        public IDictionary<string, string> Features { get; private set; }

        #endregion
    }
}